#ifndef CLIENT_LIST_H
#define CLIENT_LIST_H

#include "myhead.h"

typedef struct ClientNode
{
    int sock;
    char ip[100];
    uint16_t port;
    char username[100];
    char nickname[100];
    struct ClientNode *next;
}ClientNode;

ClientNode *client_list_init(void);
void client_list_insert_tail(ClientNode *head, ClientNode *new_node);
ClientNode *find_client_by_nickname(ClientNode *head, char *nickname);
void show_client(ClientNode *head);
void remove_client_node(ClientNode *head, ClientNode *client);
void free_client_list(ClientNode *head);

#endif